<?php
	
	include 'php.php';

	$floor=$_GET['floor'];

	$num=$_GET['num'];

	$sql="select * from t_global_floor where floor={$floor} order by id limit 0,{$num}";

	$result=$mysqli->query($sql);

	while($row=Mysqli_fetch_assoc($result)){

		$data[]=$row;
	};

	echo json_encode($data);